<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/my.js"></script>
</head>
<body>

<script>

    var ar = [10, 5, 3, 20, 15, 30, 24, 6]
    // sortArray(ar)
    // sortArray2(ar, 0)
    sortArray2(ar, 1)
    console.log(ar)


</script>

</body>
</html>